/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package questionbook.model;

import org.openrdf.model.Literal;
import org.openrdf.model.URI;

/**
 * Represents an Category for Questions
 *
 * @author stefanstift
 */
public class Category extends StandardModel {

    /**
     * The name of the Category
     */
    private String name;

    /**
     * Creates a new Categroy instance with the specified URI-String
     *
     * @param uri
     */
    public Category(String uri) {
        super(uri);
    }

    /**
     * Creates a new Categroy instance with the specified URI
     *
     * @param uri
     */
    public Category(URI uri) {
        super(uri);
    }

    /**
     *
     * @return the NAme of the Category as a Literal
     */
    public Literal getNameLiteral() {
        return this.getStringLiteral(name);
    }

    /**
     *
     * @return the Name of the Category
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the Name of the Category
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    



}
